home *** CD-ROM | disk | FTP | other *** search
- REQUESTCHOICE
-
- Allows AmigaDOS and ARexx scripts to use custom requesters.
-
- Format
-
- REQUESTCHOICE >TITLE> <body> {<gadgets>} [PUBSCREEN <public screen name>]
-
- Template
-
- TITLE/A,BODY/A,GADGETS/A/M,PUBSCREEN/K
-
- Location
-
- C:
-
- The <title> argument specifies the title of the requester.
-
- The <body> argument specifies the text of the requester. Linefeeds can be
- embedded using *N.
-
- The <gadgets> argument specifies the text for the different gadgets. The
- gadget labels are separated with spaces.
-
- The number of the selected gadget is printed as a result to the console. For
- evaluation in a script file, you can redirect this output into an environment
- variable. If the requester cannot be opened, the command generates a return
- code of 20.
-
- The PUBSCREEN argument allows the requester to open its window on a public
- screen.
-
- Example:
-
- 1> RequestChoice >ENV:rcnum "New Title" "This is my requester*nSelect a
- gadget" "OK" "Maybe" "Cancel"
-
- Figure 6-1. Sample RequestChoice Requester
-
- ENV:rcnum contains 0, 1, or 2 after a gadget is selected. The script can use
- this value to control its later execution.
-